package com.common;


import cn.hutool.extra.template.TemplateConfig;
import cn.hutool.extra.template.engine.freemarker.FreemarkerEngine;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GeneratorTemplate {
    @Bean
    public FreemarkerEngine getFreemarkerEngine(){
        return new FreemarkerEngine(new TemplateConfig("templatesTemp", TemplateConfig.ResourceMode.CLASSPATH));
    }

}
